package ${classPath};

import org.junit.jupiter.api.Test;
import lombok.extern.slf4j.Slf4j;

<#assign instance="${domain?substring(0,1)?lower_case}${domain?substring(1)}"/>
@Slf4j
public class ${domain}MapperTest extends BaseMockTest {
  private ${domain}Mapper mapper = ${domain}Mapper.INSTANCT;


  @Test
  public void testConverDto() {
    ${domain}TestBuilder testBuilder = ${domain}TestBuilder.getInstance();
    ${domain} ${instance} = testBuilder.generate();
    ${domain}Dto ${instance}Dto = mapper.converDto(${instance});
    log.info("----------------++++++++++++++ ${instance}Dto:{}", ${instance}Dto);
    // throw new RuntimeException("not yet implemented");
  }

  @Test
  public void testConverCommand() {
    ${domain}AddCommand command = new ${domain}AddCommand();
    ${domain}AddBo bo = mapper.converCommand(command);
    log.info("----------------++++++++++++++ bo:{}", bo);
  }

  @Test
  public void testConverQuery() {
    ${domain}QueryDto dto = new ${domain}QueryDto();
    ${domain}Query query = mapper.converQuery(dto);
    log.info("----------------++++++++++++++ query:{}", query);
  }
}
